{% extends "base.html" %} {% block title %}
Change User Details
{% endblock title %} {% block body %}

<div id="userdetail">
<h2>Userdetails for {{ user.email }}</h2>
<form method="post" action="/userdetail">
<table cellspacing="5">
	<tr>
		<td align="right" valign="top">Gender:</td>
		<td>
        <input type="radio" class="Radio" name="gender" value="male" {% ifequal userdetail.gender "male" %} checked="checked"{% endifequal %}>maennlich<br/>
		<input type="radio" class="Radio" name="gender" value="female" {% ifequal userdetail.gender "female" %} checked="checked"{% endifequal %}>weiblich<br/>
		</td>
	</tr>
	<tr>
		<td align="right" valign="top">Sexuality:</td>
		<td>
        <input type="radio" class="Radio" name="sexuality" value="straight" {% ifequal userdetail.sexuality "straight" %} checked="checked"{% endifequal %}>Straight<br/>
		<input type="radio" class="Radio" name="sexuality" value="gay" {% ifequal userdetail.sexuality "gay" %} checked="checked"{% endifequal %}>Gay<br/>
		</td>
	</tr>
	<tr>
		<td><label for="birthDay">Geburtstag:</label></td>
		<td>
			<select id="birthDay" name="birthDay">
				<option value="1" {% ifequal userdetail.birthdate.day 1 %} selected="selected" {% endifequal %}>1</option>
				<option value="2" {% ifequal userdetail.birthdate.day 2 %} selected="selected" {% endifequal %}>2</option>
				<option value="3" {% ifequal userdetail.birthdate.day 3 %} selected="selected" {% endifequal %}>3</option>
				<option value="4" {% ifequal userdetail.birthdate.day 4 %} selected="selected" {% endifequal %}>4</option>
				<option value="5" {% ifequal userdetail.birthdate.day 5 %} selected="selected" {% endifequal %}>5</option>
				<option value="6" {% ifequal userdetail.birthdate.day 6 %} selected="selected" {% endifequal %}>6</option>
				<option value="7" {% ifequal userdetail.birthdate.day 7 %} selected="selected" {% endifequal %}>7</option>
				<option value="8" {% ifequal userdetail.birthdate.day 8 %} selected="selected" {% endifequal %}>8</option>
				<option value="9" {% ifequal userdetail.birthdate.day 9 %} selected="selected" {% endifequal %}>9</option>
				<option value="10" {% ifequal userdetail.birthdate.day 10 %} selected="selected" {% endifequal %}>10</option>
				<option value="11" {% ifequal userdetail.birthdate.day 11 %} selected="selected" {% endifequal %}>11</option>
				<option value="12" {% ifequal userdetail.birthdate.day 12 %} selected="selected" {% endifequal %}>12</option>
				<option value="13" {% ifequal userdetail.birthdate.day 13 %} selected="selected" {% endifequal %}>13</option>
				<option value="14" {% ifequal userdetail.birthdate.day 14 %} selected="selected" {% endifequal %}>14</option>
				<option value="15" {% ifequal userdetail.birthdate.day 15 %} selected="selected" {% endifequal %}>15</option>
				<option value="16" {% ifequal userdetail.birthdate.day 16 %} selected="selected" {% endifequal %}>16</option>
				<option value="17" {% ifequal userdetail.birthdate.day 17 %} selected="selected" {% endifequal %}>17</option>
				<option value="18" {% ifequal userdetail.birthdate.day 18 %} selected="selected" {% endifequal %}>18</option>
				<option value="19" {% ifequal userdetail.birthdate.day 19 %} selected="selected" {% endifequal %}>19</option>
				<option value="20" {% ifequal userdetail.birthdate.day 20 %} selected="selected" {% endifequal %}>20</option>
				<option value="21" {% ifequal userdetail.birthdate.day 21 %} selected="selected" {% endifequal %}>21</option>
				<option value="22" {% ifequal userdetail.birthdate.day 22 %} selected="selected" {% endifequal %}>22</option>
				<option value="23" {% ifequal userdetail.birthdate.day 23 %} selected="selected" {% endifequal %}>23</option>
				<option value="24" {% ifequal userdetail.birthdate.day 24 %} selected="selected" {% endifequal %}>24</option>
				<option value="25" {% ifequal userdetail.birthdate.day 25 %} selected="selected" {% endifequal %}>25</option>
				<option value="26" {% ifequal userdetail.birthdate.day 26 %} selected="selected" {% endifequal %}>26</option>
				<option value="27" {% ifequal userdetail.birthdate.day 27 %} selected="selected" {% endifequal %}>27</option>
				<option value="28" {% ifequal userdetail.birthdate.day 28 %} selected="selected" {% endifequal %}>28</option>
				<option value="29" {% ifequal userdetail.birthdate.day 29 %} selected="selected" {% endifequal %}>29</option>
				<option value="30" {% ifequal userdetail.birthdate.day 30 %} selected="selected" {% endifequal %}>30</option>
				<option value="31" {% ifequal userdetail.birthdate.day 31 %} selected="selected" {% endifequal %}>31</option>
			</select>
		</td>	
		<td><label for="birthMonth">Geburtsmonat:</label></td>
		<td>
			<select id="birthMonth" name="birthMonth">
				<option value="1" {% ifequal userdetail.birthdate.month 1 %} selected="selected" {% endifequal %}>1</option>
				<option value="2" {% ifequal userdetail.birthdate.month 2 %} selected="selected" {% endifequal %}>2</option>
				<option value="3" {% ifequal userdetail.birthdate.month 3 %} selected="selected" {% endifequal %}>3</option>
				<option value="4" {% ifequal userdetail.birthdate.month 4 %} selected="selected" {% endifequal %}>4</option>
				<option value="5" {% ifequal userdetail.birthdate.month 5 %} selected="selected" {% endifequal %}>5</option>
				<option value="6" {% ifequal userdetail.birthdate.month 6 %} selected="selected" {% endifequal %}>6</option>
				<option value="7" {% ifequal userdetail.birthdate.month 7 %} selected="selected" {% endifequal %}>7</option>
				<option value="8" {% ifequal userdetail.birthdate.month 8 %} selected="selected" {% endifequal %}>8</option>
				<option value="9" {% ifequal userdetail.birthdate.month 9 %} selected="selected" {% endifequal %}>9</option>
				<option value="10" {% ifequal userdetail.birthdate.month 10 %} selected="selected" {% endifequal %}>10</option>
				<option value="11" {% ifequal userdetail.birthdate.month 11 %} selected="selected" {% endifequal %}>11</option>
				<option value="12" {% ifequal userdetail.birthdate.month 12 %} selected="selected" {% endifequal %}>12</option>
			</select>
		</td>	
		<td><label for="birthYear">Geburtsjahr:</label></td>
		<td>
			<select id="birthYear" name="birthYear">
				<option value="2000" {% ifequal userdetail.birthdate.year 2000 %} selected="selected" {% endifequal %}>2000</option>
				<option value="1999" {% ifequal userdetail.birthdate.year 1999 %} selected="selected" {% endifequal %}>1999</option>
				<option value="1998" {% ifequal userdetail.birthdate.year 1998 %} selected="selected" {% endifequal %}>1998</option>
				<option value="1997" {% ifequal userdetail.birthdate.year 1997 %} selected="selected" {% endifequal %}>1997</option>
				<option value="1996" {% ifequal userdetail.birthdate.year 1996 %} selected="selected" {% endifequal %}>1996</option>
				<option value="1995" {% ifequal userdetail.birthdate.year 1995 %} selected="selected" {% endifequal %}>1995</option>
				<option value="1994" {% ifequal userdetail.birthdate.year 1994 %} selected="selected" {% endifequal %}>1994</option>
				<option value="1993" {% ifequal userdetail.birthdate.year 1993 %} selected="selected" {% endifequal %}>1993</option>
				<option value="1992" {% ifequal userdetail.birthdate.year 1992 %} selected="selected" {% endifequal %}>1992</option>
				<option value="1991" {% ifequal userdetail.birthdate.year 1991 %} selected="selected" {% endifequal %}>1991</option>
				<option value="1990" {% ifequal userdetail.birthdate.year 1990 %} selected="selected" {% endifequal %}>1990</option>
				<option value="1989" {% ifequal userdetail.birthdate.year 1989 %} selected="selected" {% endifequal %}>1989</option>
				<option value="1988" {% ifequal userdetail.birthdate.year 1988 %} selected="selected" {% endifequal %}>1988</option>
				<option value="1987" {% ifequal userdetail.birthdate.year 1987 %} selected="selected" {% endifequal %}>1987</option>
				<option value="1986" {% ifequal userdetail.birthdate.year 1986 %} selected="selected" {% endifequal %}>1986</option>
				<option value="1985" {% ifequal userdetail.birthdate.year 1985 %} selected="selected" {% endifequal %}>1985</option>
				<option value="1984" {% ifequal userdetail.birthdate.year 1984 %} selected="selected" {% endifequal %}>1984</option>
				<option value="1983" {% ifequal userdetail.birthdate.year 1983 %} selected="selected" {% endifequal %}>1983</option>
				<option value="1982" {% ifequal userdetail.birthdate.year 1982 %} selected="selected" {% endifequal %}>1982</option>
				<option value="1981" {% ifequal userdetail.birthdate.year 1981 %} selected="selected" {% endifequal %}>1981</option>
				<option value="1980" {% ifequal userdetail.birthdate.year 1980 %} selected="selected" {% endifequal %}>1980</option>
				<option value="1979" {% ifequal userdetail.birthdate.year 1979 %} selected="selected" {% endifequal %}>1979</option>
				<option value="1978" {% ifequal userdetail.birthdate.year 1978 %} selected="selected" {% endifequal %}>1978</option>
				<option value="1977" {% ifequal userdetail.birthdate.year 1977 %} selected="selected" {% endifequal %}>1977</option>
				<option value="1976" {% ifequal userdetail.birthdate.year 1976 %} selected="selected" {% endifequal %}>1976</option>
				<option value="1975" {% ifequal userdetail.birthdate.year 1975 %} selected="selected" {% endifequal %}>1975</option>
				<option value="1974" {% ifequal userdetail.birthdate.year 1974 %} selected="selected" {% endifequal %}>1974</option>
				<option value="1973" {% ifequal userdetail.birthdate.year 1973 %} selected="selected" {% endifequal %}>1973</option>
				<option value="1972" {% ifequal userdetail.birthdate.year 1972 %} selected="selected" {% endifequal %}>1972</option>
				<option value="1971" {% ifequal userdetail.birthdate.year 1971 %} selected="selected" {% endifequal %}>1971</option>
				<option value="1970" {% ifequal userdetail.birthdate.year 1970 %} selected="selected" {% endifequal %}>1970</option>
				<option value="1969" {% ifequal userdetail.birthdate.year 1969 %} selected="selected" {% endifequal %}>1969</option>
				<option value="1968" {% ifequal userdetail.birthdate.year 1968 %} selected="selected" {% endifequal %}>1968</option>
				<option value="1967" {% ifequal userdetail.birthdate.year 1967 %} selected="selected" {% endifequal %}>1967</option>
				<option value="1966" {% ifequal userdetail.birthdate.year 1966 %} selected="selected" {% endifequal %}>1966</option>
				<option value="1965" {% ifequal userdetail.birthdate.year 1965 %} selected="selected" {% endifequal %}>1965</option>
				<option value="1964" {% ifequal userdetail.birthdate.year 1964 %} selected="selected" {% endifequal %}>1964</option>
				<option value="1963" {% ifequal userdetail.birthdate.year 1963 %} selected="selected" {% endifequal %}>1963</option>
				<option value="1962" {% ifequal userdetail.birthdate.year 1962 %} selected="selected" {% endifequal %}>1962</option>
				<option value="1961" {% ifequal userdetail.birthdate.year 1961 %} selected="selected" {% endifequal %}>1961</option>
				<option value="1960" {% ifequal userdetail.birthdate.year 1960 %} selected="selected" {% endifequal %}>1960</option>
				<option value="1959" {% ifequal userdetail.birthdate.year 1959 %} selected="selected" {% endifequal %}>1959</option>
				<option value="1958" {% ifequal userdetail.birthdate.year 1958 %} selected="selected" {% endifequal %}>1958</option>
				<option value="1957" {% ifequal userdetail.birthdate.year 1957 %} selected="selected" {% endifequal %}>1957</option>
				<option value="1956" {% ifequal userdetail.birthdate.year 1956 %} selected="selected" {% endifequal %}>1956</option>
				<option value="1955" {% ifequal userdetail.birthdate.year 1955 %} selected="selected" {% endifequal %}>1955</option>
				<option value="1954" {% ifequal userdetail.birthdate.year 1954 %} selected="selected" {% endifequal %}>1954</option>
				<option value="1953" {% ifequal userdetail.birthdate.year 1953 %} selected="selected" {% endifequal %}>1953</option>
				<option value="1952" {% ifequal userdetail.birthdate.year 1952 %} selected="selected" {% endifequal %}>1952</option>
				<option value="1951" {% ifequal userdetail.birthdate.year 1951 %} selected="selected" {% endifequal %}>1951</option>
				<option value="1950" {% ifequal userdetail.birthdate.year 1950 %} selected="selected" {% endifequal %}>1950</option>
				<option value="1949" {% ifequal userdetail.birthdate.year 1949 %} selected="selected" {% endifequal %}>1949</option>
				<option value="1948" {% ifequal userdetail.birthdate.year 1948 %} selected="selected" {% endifequal %}>1948</option>
				<option value="1947" {% ifequal userdetail.birthdate.year 1947 %} selected="selected" {% endifequal %}>1947</option>
				<option value="1946" {% ifequal userdetail.birthdate.year 1946 %} selected="selected" {% endifequal %}>1946</option>
				<option value="1945" {% ifequal userdetail.birthdate.year 1945 %} selected="selected" {% endifequal %}>1945</option>
				<option value="1944" {% ifequal userdetail.birthdate.year 1944 %} selected="selected" {% endifequal %}>1944</option>
				<option value="1943" {% ifequal userdetail.birthdate.year 1943 %} selected="selected" {% endifequal %}>1943</option>
				<option value="1942" {% ifequal userdetail.birthdate.year 1942 %} selected="selected" {% endifequal %}>1942</option>
				<option value="1941" {% ifequal userdetail.birthdate.year 1941 %} selected="selected" {% endifequal %}>1941</option>
				<option value="1940" {% ifequal userdetail.birthdate.year 1940 %} selected="selected" {% endifequal %}>1940</option>
				<option value="1939" {% ifequal userdetail.birthdate.year 1939 %} selected="selected" {% endifequal %}>1939</option>
				<option value="1938" {% ifequal userdetail.birthdate.year 1938 %} selected="selected" {% endifequal %}>1938</option>
				<option value="1937" {% ifequal userdetail.birthdate.year 1937 %} selected="selected" {% endifequal %}>1937</option>
				<option value="1936" {% ifequal userdetail.birthdate.year 1936 %} selected="selected" {% endifequal %}>1936</option>
				<option value="1935" {% ifequal userdetail.birthdate.year 1935 %} selected="selected" {% endifequal %}>1935</option>
				<option value="1934" {% ifequal userdetail.birthdate.year 1934 %} selected="selected" {% endifequal %}>1934</option>
				<option value="1933" {% ifequal userdetail.birthdate.year 1933 %} selected="selected" {% endifequal %}>1933</option>
				<option value="1932" {% ifequal userdetail.birthdate.year 1932 %} selected="selected" {% endifequal %}>1932</option>
				<option value="1931" {% ifequal userdetail.birthdate.year 1931 %} selected="selected" {% endifequal %}>1931</option>
				<option value="1930" {% ifequal userdetail.birthdate.year 1930 %} selected="selected" {% endifequal %}>1930</option>
				<option value="1929" {% ifequal userdetail.birthdate.year 1929 %} selected="selected" {% endifequal %}>1929</option>
				<option value="1928" {% ifequal userdetail.birthdate.year 1928 %} selected="selected" {% endifequal %}>1928</option>
				<option value="1927" {% ifequal userdetail.birthdate.year 1927 %} selected="selected" {% endifequal %}>1927</option>
				<option value="1926" {% ifequal userdetail.birthdate.year 1926 %} selected="selected" {% endifequal %}>1926</option>
				<option value="1925" {% ifequal userdetail.birthdate.year 1925 %} selected="selected" {% endifequal %}>1925</option>
				<option value="1924" {% ifequal userdetail.birthdate.year 1924 %} selected="selected" {% endifequal %}>1924</option>
				<option value="1923" {% ifequal userdetail.birthdate.year 1923 %} selected="selected" {% endifequal %}>1923</option>
				<option value="1922" {% ifequal userdetail.birthdate.year 1922 %} selected="selected" {% endifequal %}>1922</option>
				<option value="1921" {% ifequal userdetail.birthdate.year 1921 %} selected="selected" {% endifequal %}>1921</option>
				<option value="1920" {% ifequal userdetail.birthdate.year 1920 %} selected="selected" {% endifequal %}>1920</option>
			</select>
		</td>	
	</tr>
	<tr>
		<td><label for="country">Land:</label></td>
		<td>
			<select id="country" name="country">
				<option value="Deutschland" {% ifequal userdetail.country "Deutschland" %} selected="selected" {% endifequal %}>Deutschland</option>
				<option value="Schweiz" {% ifequal userdetail.country "Schweiz" %} selected="selected" {% endifequal %}>Schweiz</option>
			</select>
		</td>
	</tr>
	<tr>
		<td><label for="city">Stadt:</label></td>
		<td>
			<input maxlength="40" size="24" name="city" id="city" value="{{ userdetail.city }}" type="text" >
		</td>
	</tr>
	<tr>
		<td colspan="2"><input type="submit" value="Save Userdetails" /></td>
	</tr>
</table>
</form>
</div>
{% endblock body %}
